﻿@using MVCSoict.Views.Shared.Data
@model IEnumerable<MVCSoict.Models.Department>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Danh sách bộ môn</h2>
@Html.Partial("_PaginationPartial")
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.name)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
           @Html.Partial("_ControlPartial", new Item { ID = item.name })
        </td>
    </tr>
}

</table>
